package com.ysd.servlet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.entity.Banner;
import com.ysd.entity.Homeinfo;
import com.ysd.service.HomeinfoService;
import com.ysd.service.bannerService;


@WebServlet("/yemeiServlet")
public class yemeiServlet extends HttpServlet {
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		ArrayList<Banner> list=bannerService.getbanner();
		request.setAttribute("banner", list);
		request.getRequestDispatcher("yemei.jsp").include(request, response);
	}

}
